<?php

declare(strict_types=1);
/**
 * This file is part of habo_new_media.
 *
 * @link     https://www.berlen.cn/
 * @contact  tech@berlen.cn
 * @license  http://gitlab.rehou.cn/habo/habo_new_media/-/blob/master/README.md
 */
namespace app\service\cdc\sync;

use app\service\BaseService;

abstract class LogService extends BaseService
{
    /**
     * 获取日志列表.
     * @return mixed
     */
    public static function getList(array $where = [])
    {
        return static::getModel()->field(true)->where($where)->limit(200)->select();
    }

    public static function delSyncLog(array $where = [])
    {
        return static::getModel()->where($where)->delete();
    }
}
